3,789 research outputs found

    Programming with C++ concepts

    Get PDF
    AbstractThis paper explores the definition, applications, and limitations of concepts and concept maps in C++, with a focus on library composition. We also compare and contrast concepts to adaptation mechanisms in other languages.Efficient, non-intrusive adaptation mechanisms are essential when adapting data structures to a library’s API. Development with reusable components is a widely practiced method of building software. Components vary in form, ranging from source code to non-modifiable binary libraries. The Concepts language features, slated to appear in the next version of C++, have been designed with such compositions in mind, promising an improved ability to create generic, non-intrusive, efficient, and identity-preserving adapters.We report on two cases of data structure adaptation between different libraries, and illustrate best practices and idioms. First, we adapt GUI widgets from several libraries, with differing APIs, for use with a generic layout engine. We further develop this example to describe the run-time concept idiom, extending the applicability of concepts to domains where run-time polymorphism is required. Second, we compose an image processing library and a graph algorithm library, by making use of a transparent adaptation layer, enabling the efficient application of graph algorithms to the image processing domain. We use the adaptation layer to realize a few key algorithms, and report little or no performance degradation

    State of the World's Volunteerism Report: Universal Values for Global Well-being

    Get PDF
    The focus of this report is on the universal values that motivate people the world over to volunteer for the common good and on the impact of volunteer action on societies and individuals. The authors advocate the power of volunteering to promote cooperation, encourage participation and contribute to the well-being of individuals and of society as a whole

    Techniques in Active and Generic Software Libraries

    Get PDF
    Reusing code from software libraries can reduce the time and effort to construct software systems and also enable the development of larger systems. However, the benefits that come from the use of software libraries may not be realized due to limitations in the way that traditional software libraries are constructed. Libraries come equipped with application programming interfaces (API) that help enforce the correct use of the abstractions in those libraries. Writing new components and adapting existing ones to conform to library APIs may require substantial amounts of "glue" code that potentially affects software's efficiency, robustness, and ease-of-maintenance. If, as a result, the idea of reusing functionality from a software library is rejected, no benefits of reuse will be realized. This dissertation explores and develops techniques that support the construction of software libraries with abstraction layers that do not impede efficiency. In many situations, glue code can be expected to have very low (or zero) performance overhead. In particular, we describe advances in the design and development of active libraries - software libraries that take an active role in the compilation of the user's code. Common to the presented techniques is that they may "break" a library API (in a controlled manner) to adapt the functionality of the library for a particular use case. The concrete contributions of this dissertation are: a library API that supports iterator selection in the Standard Template Library, allowing generic algorithms to find the most suitable traversal through a container, allowing (in one case) a 30-fold improvement in performance; the development of techniques, idioms, and best practices for concepts and concept maps in C++, allowing the construction of algorithms for one domain entirely in terms of formalisms from a second domain; the construction of generic algorithms for algorithmic differentiation, implemented as an active library in Spad, language of the Open Axiom computer algebra system, allowing algorithmic differentiation to be applied to the appropriate mathematical object and not just concrete data-types; and the description of a static analysis framework to describe the generic programming notion of local specialization within Spad, allowing more sophisticated (value-based) control over algorithm selection and specialization in categories and domains. We will find that active libraries simultaneously increase the expressivity of the underlying language and the performance of software using those libraries

    Lubricating Bacteria Model for Branching growth of Bacterial Colonies

    Full text link
    Various bacterial strains (e.g. strains belonging to the genera Bacillus, Paenibacillus, Serratia and Salmonella) exhibit colonial branching patterns during growth on poor semi-solid substrates. These patterns reflect the bacterial cooperative self-organization. Central part of the cooperation is the collective formation of lubricant on top of the agar which enables the bacteria to swim. Hence it provides the colony means to advance towards the food. One method of modeling the colonial development is via coupled reaction-diffusion equations which describe the time evolution of the bacterial density and the concentrations of the relevant chemical fields. This idea has been pursued by a number of groups. Here we present an additional model which specifically includes an evolution equation for the lubricant excreted by the bacteria. We show that when the diffusion of the fluid is governed by nonlinear diffusion coefficient branching patterns evolves. We study the effect of the rates of emission and decomposition of the lubricant fluid on the observed patterns. The results are compared with experimental observations. We also include fields of chemotactic agents and food chemotaxis and conclude that these features are needed in order to explain the observations.Comment: 1 latex file, 16 jpeg files, submitted to Phys. Rev.

    Desperately seeking niches: Grassroots innovations and niche development in the community currency field

    Get PDF
    The sustainability transitions literature seeks to explain the conditions under which technological innovations can diffuse and disrupt existing socio-technical systems through the successful scaling up of experimental ‘niches’; but recent research on ‘grassroots innovations’ argues that civil society is a promising but under-researched site of innovation for sustainability, albeit one with very different characteristics to the market-based innovation normally considered in the literature. This paper aims to address that research gap by exploring the relevance of niche development theories in a civil society context. To do this, we examine a growing grassroots innovation – the international field of community currencies – which comprises a range of new socio-technical configurations of systems of exchange which have emerged from civil society over the last 30 years, intended to provide more environmentally and socially sustainable forms of money and finance. We draw on new empirical research from an international study of these initiatives comprising primary and secondary data and documentary sources, elite interviews and participant observation in the field. We describe the global diffusion of community currencies, and then conduct a niche analysis to evaluate the utility of niche theories for explaining the development of the community currency movement. We find that some niche-building processes identified in the existing literature are relevant in a grassroots context: the importance of building networks, managing expectations and the significance of external ‘landscape’ pressures, particularly at the level of national-type. However, our findings suggest that existing theories do not fully capture the complexity of this type of innovation: we find a diverse field addressing a range of societal systems (money, welfare, education, health, consumerism), and showing increasing fragmentation (as opposed to consolidation and standardisation); furthermore, there is little evidence of formalised learning taking place but this has not hampered movement growth. We conclude that grassroots innovations develop and diffuse in quite different ways to conventional innovations, and that niche theories require adaptation to the civil society context

    Self-organized Vortex State in Two-dimensional Dictyostelium Dynamics

    Full text link
    We present results of experiments on the dynamics of Dictyostelium discoideum in a novel set-up which constraints cell motion to a plane. After aggregation, the amoebae collect into round ''pancake" structures in which the cells rotate around the center of the pancake. This vortex state persists for many hours and we have explicitly verified that the motion is not due to rotating waves of cAMP. To provide an alternative mechanism for the self-organization of the Dictyostelium cells, we have developed a new model of the dynamics of self-propelled deformable objects. In this model, we show that cohesive energy between the cells, together with a coupling between the self-generated propulsive force and the cell's configuration produces a self-organized vortex state. The angular velocity profiles of the experiment and of the model are qualitatively similar. The mechanism for self-organization reported here can possibly explain similar vortex states in other biological systems.Comment: submitted to PRL; revised version dated 3/8/9

    Black hole polarization and new entropy bounds

    Get PDF
    Zaslavskii has suggested how to tighten Bekenstein's bound on entropy when the object is electrically charged. Recently Hod has provided a second tighter version of the bound applicable when the object is rotating. Here we derive Zaslavskii's optimized bound by considering the accretion of an ordinary charged object by a black hole. The force originating from the polarization of the black hole by a nearby charge is central to the derivation of the bound from the generalized second law. We also conjecture an entropy bound for charged rotating objects, a synthesis of Zaslavskii's and Hod's. On the basis of the no hair principle for black holes, we show that this last bound cannot be tightened further in a generic way by knowledge of ``global'' conserved charges, e.g., baryon number, which may be borne by the object.Comment: 21 pages, RevTex, Regularization of potential made clearer. Error in energy of the particle corrected with no consequence for final conclusions. New references adde

    Changes in attitudes to awareness of hypoglycaemia during a hypoglycaemia awareness restoration programme are associated with avoidance of further severe hypoglycaemia episodes within 24 months: the A2A in HypoCOMPaSS study

    Get PDF
    Aims/hypothesis: The aims of this study were to assess cognitions relating to hypoglycaemia in adults with type 1 diabetes and impaired awareness of hypoglycaemia before and after the multimodal HypoCOMPaSS intervention, and to determine cognitive predictors of incomplete response (one or more severe hypoglycaemic episodes over 24 months). Methods: This analysis included 91 adults with type 1 diabetes and impaired awareness of hypoglycaemia who completed the Attitudes to Awareness of Hypoglycaemia (A2A) questionnaire before, 24 weeks and 24 months after the intervention, which comprised a short psycho-educational programme with optimisation of insulin therapy and glucose monitoring. Results: The age and diabetes duration of the participants were 48±12 and 29±12 years, respectively (mean±SD). At baseline, 91% reported one or more severe hypoglycaemic episodes over the preceding 12 months; this decreased to <20% at 24 weeks and after 24 months (p=0.001). The attitudinal barrier hyperglycaemia avoidance prioritised (2p=0.250, p=0.001) decreased from baseline to 24 weeks, and this decrease was maintained at 24 months (mean±SD=5.3±0.3 vs 4.3±0.3 vs 4.0±0.3). The decrease in asymptomatic hypoglycaemia normalised from baseline (2p=0.113, p=0.045) was significant at 24 weeks (1.5±0.3 vs 0.8±0.2). Predictors of incomplete hypoglycaemia response (one or more further episodes of severe hypoglycaemia) were higher baseline rates of severe hypoglycaemia, higher baseline scores for asymptomatic hypoglycaemia normalised, reduced change in asymptomatic hypoglycaemia normalised scores at 24 weeks, and lower baseline hypoglycaemia concern minimised scores (all p<0.05). Conclusions/interpretation: Participation in the HypoCOMPaSS RCT was associated with improvements in hypoglycaemia-associated cognitions, with hyperglycaemia avoidance prioritised most prevalent. Incomplete prevention of subsequent severe hypoglycaemia episodes was associated with persistence of the cognition asymptomatic hypoglycaemia normalised. Understanding and addressing cognitive barriers to hypoglycaemia avoidance is important in individuals prone to severe hypoglycaemia episodes. Clinical trials registration: www.isrctn.org: ISRCTN52164803 and https://eudract.ema.europa.eu: EudraCT2009-015396-27. Graphical abstract: [Figure not available: see fulltext.]. (c) 2022, The Author(s)

    The association of pain with suicidal ideation and suicide attempts with depressive symptoms among adults aged ≄50 years from low- and middle-income countries

    Get PDF
    Objectives: We aimed to examine the relationship of pain with suicidal ideation and suicide attempts with depressive symptoms among adults aged ≄50&nbsp;years from six low- and middle-income countries (LMICs) (China, Ghana, India, Mexico, Russia, and South Africa). Methods: Cross-sectional, community-based, nationally representative data from the WHO Study on global AGEing and adult health were analyzed. Self-reported information on past 12-month suicidal ideation and suicide attempts among people with depressive symptoms was collected. Pain was assessed with the question “Overall in the last 30&nbsp;days, how much of bodily aches or pain did you have?” With answer options: “none”, “mild”, “moderate”, “severe/extreme”. Multivariable logistic regression was done to assess associations. Results: Data on 34,129 adults aged ≄50&nbsp;years (mean [SD] age 62.4 [16.0] years; males 47.9%) were analyzed. Compared to no pain, mild, moderate, and severe/extreme pain were associated with 2.83 (95% CI&nbsp;=&nbsp;1.51–5.28), 4.01 (95% CI&nbsp;=&nbsp;2.38–6.76), and 12.26 (95% CI&nbsp;=&nbsp;6.44–23.36) times higher odds for suicidal ideation. For suicide attempt, only severe/extreme pain was associated with significantly increased odds (OR&nbsp;=&nbsp;4.68; 95% CI&nbsp;=&nbsp;1.67–13.08). Conclusions: In this large sample of older adults from multiple LMICs, pain was strongly associated with suicidal thoughts and suicide attempts with depressive symptoms. Future studies should assess whether addressing pain among older people in LMICs may lead to reduction in suicidal thoughts and behaviors
    • 

    corecore